package com.ewanghuiju.app.base.contract.login;

import com.ewanghuiju.app.base.BasePresenter;
import com.ewanghuiju.app.base.BaseView;
import com.ewanghuiju.app.model.bean.request.LoginRequestBean;
import com.ewanghuiju.app.model.bean.response.LoginResponBean;
import com.ewanghuiju.app.model.bean.response.UserInfoResponBean;

/**
 * @author sj  qq:751943509
 * @class describe
 * @time 2020/2/14
 */
public interface PhoneLoginContract {

    interface View extends BaseView {
        void showLogin(LoginResponBean bean);

        void showLoginResponseMsg(int code, String message);

        void showUserInfo(UserInfoResponBean bean);

        void showUserInfoEorrMsg(int code, String message);
    }

    interface Presenter extends BasePresenter<View> {

        void phoneLogin(LoginRequestBean loginRequestBean);

        void getUserInfo();

        void wxUserLogin(String unionid);
    }

}
